package com.fsq.beans.vo.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author fsq
 * @date 2020/07/27
 */
@Data
public class EmployeePost implements Serializable {

    @NotNull(message = "年龄不能为空")
    @Max(value = 150, message = "年龄不能超过150")
    @Min(value = 0, message = "年龄最低为0")
    private Integer age;

    @NotNull(message = "性别不能为空，（true：男，false：女）")
    private Boolean gender;

    @NotBlank(message = "地址不能为空")
    private String address;
}
